package com.zhizhi.common.exception;

/**
 * @Description
 * @Date 2019/8/29 18:14
 * @Author zsj
 */
public class ServiceException extends RuntimeException {
    String code;
    //异常原因
    String reason;
    public ServiceException() {
    }

    public ServiceException(String code, String reason) {
        this.code = code;
        this.reason = reason;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
